<?php 
	include_once('ConnectionDB.php');
	include_once('BeanDiaInhabil.php');
	
	class DAODiaInhabil extends ConnectionDB{
		
		private $aEventos;
		
		public function _construct(){
			parent::_construct();
			$this->aEventos = array();
		}
		
		public function guardarDiaInhabil($sFechaInicio,$sFechaFin){
			$oDiaInhabil; 
			$this->sQuery = "INSERT INTO dias_inhabiles VALUES ('','$sFechaInicio','$sFechaFin')";
			$oResult = mysql_query($this->sQuery);
	
			if(mysql_affected_rows() > 0){
				$oDiaInhabil = new BeanDiaInhabil(mysql_insert_id(), $sFechaInicio, $sFechaFin);		
			}
			
			return $oDiaInhabil;
		}
}